package com.mrdeer.web.converter;

import cn.hutool.core.bean.BeanUtil;
import com.mrdeer.common.entity.sys.Permission;
import com.mrdeer.common.entity.vo.MenuVO;

public class MenuConverter {

    public static MenuVO permission2MenuVo(Permission p) {
        MenuVO menuVo = new MenuVO();
        BeanUtil.copyProperties(p, menuVo);
        return menuVo;
    }
}
